package rsb21411ls.d1020;

import java.util.Scanner;

public class demo02 {
    public demo02() {
    }

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("请输入数字");
        int x = s.nextInt();
        String weekDay = getWeekDay(x);

        System.out.println(weekDay);
    }

    public static String getWeekDay(int x) {
        if (x > 0 && x < 8) {
            String[] arr = new String[]{"星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期天"};
            return arr[x - 1];
        } else {
            return "error static!";
        }
    }

}
